/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
 * MA  02110-1301, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package com.aionemu.gameserver.model.team.legion.enums;

/**
 * @author lyahim
 *
 */
public enum eLegionEditEvent
{
	UNK(-1),
	CHANGE_LEVEL(0),
	CHANGE_RANK(1),
	CHANGE_PREMISSIONS(2),
	CHANGE_CONTRIBUTION(3),
	CHANGE_ANNOUNCEMENT(5),
	DISBAND_LEGION(6),
	RECOVER_LEGION(7),
	REFRESH_ANNOUNCEMENT(8);

	private int	id;

	private eLegionEditEvent(int id)
	{
		this.id = id;
	}

	public int getId()
	{
		return id;
	}

	public static eLegionEditEvent getMemberById(int id)
	{
		for (eLegionEditEvent memb : eLegionEditEvent.values())
			if (memb.id == id)
				return memb;
		return UNK;
	}
}
